package S14.first;

import java.util.stream.Stream;

public class F02 {

	public static void main(String[] args) {
		String[]xms= {"zhangsan","lisi","wangwu"};
		Stream.of(xms).forEach(s->System.out.println(s)); //用lambda表达式定义一个函数
		System.out.println("------------");
		Stream.of(xms).forEach(System.out::println); //也可引用已有的方法


	}

}
